home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / i / internet / software / netstsr / cookie.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-06  |  583 b   |  23 lines

  1. /* cookie jar */
  2.  
  3.  
  4. typedef struct
  5. {
  6.     long    id;
  7.     long    val;
  8. } COOKIE;
  9.  
  10. #define ENDCOOKIE    0L
  11. #define NETENVCOOKIE 0x4e455443L            /* "NETC" */
  12.  
  13. COOKIE *new_cookiejar(long n);            /* create cookiejar,        */
  14.                                         /* if a bigger one exists,    */
  15.                                         /* get old one                 */
  16. COOKIE *get_cookiejar(void);            /* find start of cookijar     */
  17. COOKIE *add_cookie(long id ,long val);    /* add a cookie,             */
  18.                                         /* if no jar exists,         */
  19.                                         /* create a new one and     */
  20.                                         /* then add cookie            */
  21. COOKIE *get_cookie(long id);            /* find a specific cookie     */
  22.  
  23.